﻿package com.ghost.model
{
	import com.ghost.data_struct.HashMap;
	
	import flash.display.Sprite;
	
	public class Global_ui_data extends Sprite
	{
		public var nine_grid_h:HashMap;//带9宫格的图片资源
		public var global_obj_h:HashMap;//公用对象（按钮，mc，...）
		public function Global_ui_data()
		{
			/*储存带9宫格的图片资源*/
			nine_grid_h = new HashMap();
			[Embed(source='../../../../assets/ui/9grid_public/pop_top.png',scaleGridLeft="165" , scaleGridRight="166",scaleGridTop="32",scaleGridBottom="47")]
			var pop_top:Class;
			[Embed(source='../../../../assets/ui/9grid_public/pop_down.png',scaleGridLeft="99" , scaleGridRight="100",scaleGridTop="30",scaleGridBottom="44")]
			var pop_down:Class;
			[Embed(source='../../../../assets/ui/9grid_public/frame_bg.png',scaleGridLeft="10" , scaleGridRight="27",scaleGridTop="10",scaleGridBottom="18")]
			var frame_bg:Class;
			[Embed(source='../../../../assets/ui/9grid_public/pop_sider.png')]
			var pop_sider:Class;
			[Embed(source='../../../../assets/ui/9grid_public/pop_bg.png')]
			var pop_bg:Class;
			nine_grid_h.put("pop_top",pop_top);
			nine_grid_h.put("pop_down",pop_down);
			nine_grid_h.put("frame_bg",frame_bg);
			nine_grid_h.put("pop_sider",pop_sider);
			nine_grid_h.put("pop_bg",pop_bg);
			
			/*[Embed(source='../../../../assets/ui/9grid_public/btn_out.png',scaleGridLeft="4" , scaleGridRight="77",scaleGridTop="4",scaleGridBottom="25")]
			var btn_out:Class;
			[Embed(source='../../../../assets/ui/9grid_public/btn_over.png',scaleGridLeft="4" , scaleGridRight="77",scaleGridTop="4",scaleGridBottom="25")]
			var btn_over:Class;
			var btn_v:Vector.<Object> = new <Object>[btn_out,btn_over,btn_over,btn_out];
			nine_grid_h.put("btn_v",btn_v);*/
			[Embed(source='../../../../assets/ui/9grid_public/tab_btn_out.png',scaleGridLeft="4" , scaleGridRight="66",scaleGridTop="4",scaleGridBottom="23")]
			var tab_btn_out:Class;
			[Embed(source='../../../../assets/ui/9grid_public/tab_btn_over.png',scaleGridLeft="4" , scaleGridRight="66",scaleGridTop="4",scaleGridBottom="23")]
			var tab_btn_over:Class;
			[Embed(source='../../../../assets/ui/9grid_public/tab_btn_click.png',scaleGridLeft="4" , scaleGridRight="66",scaleGridTop="4",scaleGridBottom="23")]
			var tab_btn_click:Class;
			var tab_btn_v:Vector.<Object> = new <Object>[tab_btn_over,tab_btn_over,tab_btn_over,tab_btn_out];
			nine_grid_h.put("tab_btn_v",tab_btn_v);
			
			/*储存公用对象（固定按钮，mc，...）*/
			global_obj_h = new HashMap();
			global_obj_h.put("close_btn",close_btn)
		}
	}
}